﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UIWindows.GlobalStatics;
using UIWindows.ViewModels.DeviceInteractiveaddressItems;
using UIWindows.ViewModels.MesParameterItems;
using UIWindows.Views.DeviceInteractiveaddressItems;
using UIWindows.Views.MesParameterItems;

namespace UIWindows.ViewModels
{
    public class DeviceInteractiveaddressViewModel : UIWindows.Domains.ViewModelBase
    {
        public BaseParamete BaseParameterView { get; set; }
        public CollectParameter CollectParameterView { get; set; }
        public DeviceInteractiveaddressViewModel(GlobalStatics.DeviceInteractiveaddressStatic parameter, UserConfigStatic userConfig, SystemConfigStatic systemConfigStatic)
        {
            BaseParameterView = new BaseParamete
            {
                DataContext = new BaseParameteViewModel(parameter, userConfig)
            };
            CollectParameterView = new CollectParameter
            {
                DataContext = new CollectParameterViewModel(parameter, userConfig, systemConfigStatic)
            };
        }
    }
}
